package com.blog.entity.mid;

import java.util.Date;

/**
 * @author 蒲鑫
 * @function 功能：中间表postStar的全部信息
 * @date 2023年6月1日
 */
public class PostStar {
	private int postStarId;//收藏id

	private int postId;//帖子id

	private int userId;//用户id

	private Date starDate;//收藏时间

	public int getpostStarId() {
		return postStarId;
	}

	public void setpostStarId(int postStarId) {
		this.postStarId = postStarId;
	}

	public int getPostId() {
		return postId;
	}

	public void setPostId(int postId) {
		this.postId = postId;
	}

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	public Date getStarDate() {
		return starDate;
	}

	public void setStarDate(Date starDate) {
		this.starDate = starDate;
	}

	@Override
	public String toString() {
		return "PostStar [postStarId=" + postStarId + ", postId=" + postId + ", userId=" + userId + ", starDate=" + starDate
				+ "]";
	}

	public PostStar(int postStarId, int postId, int userId, Date starDate) {
		super();
		this.postStarId = postStarId;
		this.postId = postId;
		this.userId = userId;
		this.starDate = starDate;
	}

	public PostStar() {
		super();
	}

}
